/**
 * Created by Administrator on 2017/5/14 0014.
 */
checkCookie()
var mid= $.cookie('mid')
var token= $.cookie('token')
/**
 * Created by Maibenben on 2017/5/10.
 */
$(function () {
    //进入页面显示就诊人信息
    var data = {mid: $.cookie("mid") , token : $.cookie("token")};
    getData({url:hosURL,data:data}, function (data) {
        $(".load").hide();
        $(".person_list").html(template("danganTem", data));
        var childs=$('.person_list').find('li')
        if(childs.length==0){
            $('.person_list').append('<p style="text-align: center;padding-top: 10px;font-size:15px; line-height: 360px; color: #666;">暂无人员</p>')
        }
        // $('.person_list li').on('touchstart', function () {
        //     var m_id=$(this).attr('m_id')
        //     localStorage.name=$(this).text()
        //     window.location.href='everyday.html?mid='+m_id
        // })
    });
});